package com.hive.selffunction;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.hive.ql.udf.UDFType;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;

@UDFType(deterministic = true)
public class MultiBig extends UDF{

	//ID增大1000倍
	public Text evaluate(IntWritable id){
		int bigId=id.get()*1000;
		return new Text(String.valueOf(bigId));
	}
}
